package fun.boomcat.luckyhe.mirai.plugin.service;

import fun.boomcat.luckyhe.mirai.plugin.pojo.CommandMapping;

import java.io.IOException;
import java.util.List;

public interface CommandMappingService {
    int createCommandMappingTable() throws IOException;
    int insertOneCommandMapping(CommandMapping commandMapping) throws IOException;
    CommandMapping selectSameSourceCommandMapper(String source) throws IOException;
    int delOneCommandMapping(CommandMapping commandMapping) throws IOException;
    List<CommandMapping> selectAllCommandMapping() throws IOException;
    List<CommandMapping> selectMatchCommandMapping(String source) throws IOException;
}
